package com.jic.market.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.entity.MyBargain;
import com.jic.market.request.rest.bargain.MyBargainQueryRestRequest;
import com.jic.market.request.rest.bargain.MyBargainRestRequest;
import com.jic.market.request.rest.bargain.MyBargainSaveRestRequest;
import com.jic.market.request.rest.bargain.ProductBargainRestRequest;
import com.jic.market.response.rest.bargain.MyBargainRestResponse;
import com.jic.market.response.rest.bargain.ProductBargainRestResponse;

import java.lang.Long;
import java.math.BigDecimal;
import java.util.List;


/**
* 我的砍价商品表
* @author : 
* @email : 
* @since : 2020-09-10 06:20:01
* @version : v1.0.0
*/
public interface MyBargainService {

    long insert(MyBargain myBargain);

    long delete(Long id);

    long update(MyBargain myBargain);

    MyBargain queryByPrimaryKey(Long id);

    List<MyBargain> query(MyBargain myBargain);

    PageResult<MyBargain> queryPage(MyBargain myBargain, Page pageQuery);

    PageResult<MyBargainRestResponse> listRestPage(MyBargainQueryRestRequest myBargainQueryRestRequest, Page pageQuery);

    MyBargainRestResponse helpBargain(MyBargainSaveRestRequest myBargainSaveRestRequest);

}